package com.woniuxy.credit_loans.mapper;

import com.woniuxy.credit_loans.accounting_shi.vo.WeiDaVo;
import com.woniuxy.credit_loans.entity.User;
import com.woniuxy.credit_loans.staff_ma.dto.UserDto;
import com.woniuxy.credit_loans.staff_ma.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author donghang
* @description 针对表【user(user)】的数据库操作Mapper
* @createDate 2022-12-06 12:05:35
* @Entity com.woniuxy.credit_loans.entity.User
*/
@Mapper
public interface UserMapper {

    User selectByName(String userName);

    List<User> selectAll();

    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    User login(UserDto dto);

    //查看账户是否已经注册
    User selectByUserAcc(String userAcc);

    //注册
    int register(User user);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    //查询是否有借款记录-马玉雪
    UserVo selectBorrowHistory(UserVo userVo);

    //查询用户信息  --马玉雪 2022-12-14
    User selectByUser(User user);

    UserDto updateUserPwd(Long userId);

}
